package com.aspose.cells;

class zlm extends zlk implements zagk {
   private zaag e;
   private zagu f;
   private zagu g;

   public zlm(zaay var1, zaag var2, int var3, int var4, zagu var5) {
      super(var1, var3, var4);
      this.e = var2.l();
      this.e.d((zagu)zzk.a);
      this.f = var2.m();
      this.g = var5.e(var1);
      this.e.c(var5);
   }

   public zagi a(zaay var1) {
      return new zlm(var1 == null ? this.a : var1, this.e, this.b, this.c, this.g);
   }

   public void b(zaay var1) {
      super.b(var1);
      if (this.f != null) {
         this.g = this.f.e(var1);
         this.e.c(this.g);
      }

   }

   public zagu a(zagu var1) {
      if (this.d) {
         zaag var2 = this.e.l();
         var2.c(this.g);
         var2.d(var1);
         return var2;
      } else {
         this.e.d(var1);
         this.e.p();
         return this.e;
      }
   }

   public zagu a(zagu var1, boolean var2) {
      if (var2) {
         if (var1.c(this.a, true)) {
            return null;
         }
      } else if (this.d && var1.c(this.a, true)) {
         zaag var4 = this.e.l();
         var4.c(this.g);
         var4.d(var1);
         return var4;
      }

      this.e.d(var1);
      this.e.p();
      zagu var3 = this.e.d(this.a);
      return (zagu)(var3.b() == 3 && ((zyy)var3).m() ? zyy.a : var3);
   }
}
